﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SLAssetSystem
{
    public abstract class InfosBase<T> where T:new()
    {
        protected Dictionary<int, T> infos = new Dictionary<int, T>();

        public abstract void InitData(CsvData data);

        public T GetInfo(int id)
        {
            return infos[id];
        }

        public Dictionary<int, T> GetInfos()
        {
            return infos;
        }
    }
}
